package snaker

import "gitee.com/wcs2/common/enums"

type nodeTaskStatusStruct struct {
	NODE_TASK_CREATED  enums.PositionEnum
	NODE_TASK_STARTED  enums.PositionEnum
	NODE_TASK_FINISHED enums.PositionEnum
	NODE_TASK_ERROR    enums.PositionEnum
}

// 节点任务状态枚举
var NodeTaskStatusEnum = &nodeTaskStatusStruct{
	NODE_TASK_CREATED: enums.PositionStruct{
		Code:    "NODE_TASK_CREATED",
		Des:     "节点任务创建",
		PlcCode: "[CREATED]",
	}, NODE_TASK_STARTED: enums.PositionStruct{
		Code:    "NODE_TASK_STARTED",
		Des:     "节点任务开始",
		PlcCode: "[STARTED]",
	}, NODE_TASK_FINISHED: enums.PositionStruct{
		Code:    "NODE_TASK_FINISHED",
		Des:     "节点任务完成",
		PlcCode: "[FINISHED]",
	}, NODE_TASK_ERROR: enums.PositionStruct{
		Code:    "NODE_TASK_ERROR",
		Des:     "节点任务错误",
		PlcCode: "[ERROR]",
	},
}
